cmake_minimum_required(VERSION 3.10)
project(ProcessHelperTests)

# 设置编译标准为 C++14
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

# 添加测试程序
add_executable(process_helper_test process_helper.cc process_helper_test.cc)


# 链接 Google Test 和 Google Mock 库以及 pthread 库
target_link_libraries(process_helper_test PRIVATE gtest gmock pthread)

# 设置可执行文件的输出目录
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
